package com.collect.cameroon.zhiScene.zhiCollection.zhiGroup.zhiPerformance.zhiSort;

import com.collect.cameroon.zhiBean.zhiReceive.ZHIRPerfermanceGroupDailyEntity;

import java.util.Comparator;

public class ZHIGroupDailyCompareByTotalNumDES implements Comparator<ZHIRPerfermanceGroupDailyEntity> {
    @Override
    public int compare(ZHIRPerfermanceGroupDailyEntity o1, ZHIRPerfermanceGroupDailyEntity o2) {
        if (o1.getTotalInt() < o2.getTotalInt()) {
            return -1;
        } else if (o1.getTotalInt() < o2.getTotalInt()) {
            return 0;
        } else {
            return 1;
        }
    }
}
